package cg.modelo;

public abstract class Card implements Seteable{

	private String id;
	private boolean visible;

	public Card(String id) {
		this.id = id;
		this.visible = false;
	}
	
	@Override
	public boolean equals(Object card) {
		if((card == null) || (card.getClass() != this.getClass())) {
			return false;
		}
		return (this.getId() == ((Card) card).getId());
	}

	protected void setVisibility(boolean visibility) {
		this.visible = visibility;
	}
	
	protected String getId() {
		return this.id;
	}

	public boolean sendToGraveyard(Board board) {
		return false;
	}

	public boolean removeFromPlay(Board board) {
		return false;
	}
}
